#include "string_helper.h"

void sub_tring(char* input, int first, int last, char* output)
{
  int j = 0;
  for (int i = first; i <= last; ++i)
  {
    output[j] = input[i];
    ++j;
  }
}

void split_string (char* strArr [], char* str, const char* delim, int length)
{
   char* token = strtok(str, delim);
   strArr[0] = token;
   for (int i = 1; i < length; ++i)
   {
      token = strtok(NULL, delim);
      strArr[i] = token;
   }
}